<template>
    <div className="app-container">
        <Pc v-if="checkAgents"  @getCount="$emit('getCount')"></Pc>
        <Mobile v-if="!checkAgents"  @getCount="$emit('getCount')"></Mobile>
    </div>
</template>

<script>
import { checkAgents } from "@/utils/match";
import Mobile from "@/views/message/sensorError/mobile";
import Pc from "@/views/message/sensorError/pc/index.vue";

export default {
    components: {
        Mobile,
        Pc
    },
    data() {
        return {
            checkAgents: false
        }
    },
    mounted() {
        this.checkAgents = checkAgents()
    }
}
</script>

